package com.hua.yuan.live.view;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.hua.yuan.live.R;

public class BlackView {


    private TextView tvTitle;

    private TextView tvSubTitle;

    private View mView;

    public BlackView(Context pContext){

       mView= LayoutInflater.from(pContext).inflate(R.layout.include_blank_live,null);
       tvTitle=mView.findViewById(R.id.tv_title_black_view);
       tvSubTitle=mView.findViewById(R.id.tv_subtitle_black_view);
    }


    public void setTitle(String title){
        tvTitle.setText(title);
    }

    public void setSubTitle(String subTitle){
        tvSubTitle.setText(subTitle);
    }

    public void setVisible(int visible){
        mView.setVisibility(visible);
    }

    public View getCurrentView(){
        return mView;
    }

}
